const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      icon: "homeFilled",
      title: "首页",
      showLink: false,
      rank: 104
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue")
      }
    ]
  },
  {
    path: "/account",
    component: Layout,
    meta: {
      title: "账号管理",
      showLink: false,
      rank: 104
    },
    children: [
      {
        path: "/account/settings",
        name: "accountSettings",
        component: () => import("@/views/account/settings.vue"),
        meta: {
          title: "个人信息",
          showLink: false
        }
      }
    ]
  },
  {
    path: "/blog",
    component: Layout,
    meta: {
      title: "博客",
      showLink: false,
      rank: 104
    },
    children: [
      {
        path: "/formdesign/design",
        name: "formdesigndesign",
        component: () => import("@/views/formdesign/design.vue"),
        meta: {
          title: "表单编辑",
          hiddenTag: true,
          showLink: false
        }
      },
      {
        path: "/article/article/edit",
        name: "articleedit",
        component: () => import("@/views/article/article/edit.vue"),
        meta: {
          title: "文章编辑",
          hiddenTag: true,
          showLink: false
        }
      },
      {
        path: "/blog/post/edit",
        name: "postedit",
        component: () => import("@/views/blog/post/edit.vue"),
        meta: {
          title: "文章编辑",
          hiddenTag: true,
          showLink: false
        }
      }
    ]
  }
] as Array<RouteConfigsTable>;
